package bb.lanxing.lib.devices.bici.model;

import java.io.Serializable;

public class CadenceData implements Serializable {
    private int cadence;
    private int cadenceTime;
    private double distance;
    private double speed;
    private int sumCadence;
    private int sumWheel;
    private int wheelRpm;
    private int wheelTime;

    public boolean equals(Object obj) {
        if (obj instanceof CadenceData) {
            CadenceData cadenceData = (CadenceData) obj;
            return cadenceData.getSumWheel() == this.sumWheel && cadenceData.getWheelTime() == this.wheelTime && cadenceData.getSumCadence() == this.sumCadence && cadenceData.getCadenceTime() == this.cadenceTime && cadenceData.getWheelRpm() == this.wheelRpm && cadenceData.getSpeed() == this.speed && cadenceData.getDistance() == this.distance && cadenceData.getCadence() == this.cadence;
        }
        return false;
    }

    public String toString() {
        return "CadenceData: sumWheel = " + this.sumWheel + ", sumCadence = " + this.sumCadence + ", wheelTime = " + this.wheelTime + ", cadenceTime = " + this.cadenceTime + ", wheelRpm = " + this.wheelRpm + ", speed = " + this.speed + ", distance= " + this.distance + ", cadence = " + this.cadence;
    }

    public int getWheelRpm() {
        return this.wheelRpm;
    }

    public void setWheelRpm(int i) {
        this.wheelRpm = i;
    }

    public double getSpeed() {
        return this.speed;
    }

    public void setSpeed(double d) {
        this.speed = d;
    }

    public double getDistance() {
        return this.distance;
    }

    public void setDistance(double d) {
        this.distance = d;
    }

    public int getCadence() {
        return this.cadence;
    }

    public void setCadence(int i) {
        this.cadence = i;
    }

    public int getSumWheel() {
        return this.sumWheel;
    }

    public void setSumWheel(int i) {
        this.sumWheel = i;
    }

    public int getWheelTime() {
        return this.wheelTime;
    }

    public void setWheelTime(int i) {
        this.wheelTime = i;
    }

    public int getSumCadence() {
        return this.sumCadence;
    }

    public void setSumCadence(int i) {
        this.sumCadence = i;
    }

    public int getCadenceTime() {
        return this.cadenceTime;
    }

    public void setCadenceTime(int i) {
        this.cadenceTime = i;
    }
}
